﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Threading;
using System.Diagnostics;
using System.Collections.Generic;

namespace System.Windows.Media.DirectShow.UI
{
    internal class AudioVisualizationControl : ContentControl
    {

        public AudioVisualizationControl()
        {
  
        }

        private Visualization _visualization;

        protected override void OnContentChanged(object oldContent, object newContent)
        {
            base.OnContentChanged(oldContent, newContent);

            _visualization = newContent as Visualization;

            if (_visualization == null)
                throw new ArgumentException("Content must be a Visualization");
        }

        protected Visualization Visualization
        {
            get { return _visualization; }
        }

     

        
    }
}
